/***************************************************
 ** @Desc : This file for ...
 ** @Time : 2018-7-26 10:13
 ** @Author : Joker
 ** @File : SystemInit.go
 ** @Last Modified by : Joker
 ** @Last Modified time: 2018-08-02 17:46:23
 ** @Software: GoLand
****************************************************/
package sysinit

import (
	"boss/utils"

	"github.com/astaxie/beego"
)

func init() {
	//启用Session
	beego.BConfig.WebConfig.Session.SessionOn = true
	//文件存储引擎保存session
	beego.BConfig.WebConfig.Session.SessionProvider = "file"
	beego.BConfig.WebConfig.Session.SessionProviderConfig = "./temp"
	//初始化日志
	utils.InitLogs()
	//初始化数据库
	InitDatabase()
}
